package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

var buildingApi api.BuildingApi

type BuildingRouter struct {
}

func (b *BuildingRouter) buildingGroup(router *gin.RouterGroup) *gin.RouterGroup {
	build := router.Group("building")
	{
		build.GET("all", buildingApi.GetAll)              // 查询所有教学楼信息
		build.GET("query", buildingApi.Query)             //模糊查询教学楼和教室信息
		build.GET("getByCampus", buildingApi.GetByCampus) //根据学校分区id查询教学耧
	}
	return build
}
